// Copyright (C) joyinter
// All rights reserved.
// 
// Author : Jiang Li
// Date   : 2005-4-30

#ifndef __CSUMPEFILE_H_COMMON_GUARD__
#define __CSUMPEFILE_H_COMMON_GUARD__

#pragma once

namespace JoyGuard
{

//##ModelId=44C4B60E00BD
class CSumSect
{
public:
	//##ModelId=44C4B60E00BE
    DWORD m_rva;
	//##ModelId=44C4B60E00CB
    DWORD m_size;
	//##ModelId=44C4B60E00CC
    DWORD m_csum;
};

//##ModelId=44C4B60E00DA
class CSumPeFile
{
public:
	//##ModelId=44C4B60E00DB
    static bool BuildSectCSum(const BYTE* baseAddr, const char* sectName, CSumSect& ss);
	//##ModelId=44C4B60E00EB
    static bool BuildSectCSum(const char* peFile, const char* sectName, CSumSect& ss);
};

} // namespace JoyGuard

#endif  // __CSUMPEFILE_H_COMMON_GUARD__
